{extend name='main'}

{block name="content"}
<div  class="think-box-shadow">
    {include file='educertcheck/index_search'}
    <table class="layui-table" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
            </th>
            <th class='layui-hide-xs'>证书编号</th>
            <th class='layui-hide-xs'>学员姓名</th>
            <th class='layui-hide-xs'>身份证</th>
            <th class='layui-hide-xs'>工作单位</th>
            <th class='layui-hide-xs'>岗位类别及工种</th>
            <th class='layui-hide-xs'>复检日期</th>
            <th class='layui-hide-xs'>复检人员</th>
            <th class='layui-hide-xs'>操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr  data-dbclick>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
            </td>
            <td>{$vo.cert_no}</td>
            <td class="nowrap">{$vo.name}</td>
            <td>{$vo.idno}</td>
            <td>{$vo.company}</td>
            <td style="width:140px;">{$vo.work_name}<strong>{$vo.position_name}</strong></td>
            <td class="nowrap">{$vo.create_at|format_datetime='Y-m-d'}</td>
            <td class="nowrap">{$vo.create_by}</td>
            <td  class='text-center nowrap notselect'>
                {if auth("edit")}
                    <a class="layui-btn layui-btn-danger layui-btn-xs" data-confirm="确定要删除吗?"
                       data-action="{:url('remove')}" data-value="id#{$vo.id}"
                            data-csrf="{:systoken('remove')}">删除</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}


